<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
 <head>
  <title>添加视频设备</title>
  <t:base type="jquery,easyui,tools,DatePicker"></t:base>
  <script type="text/javascript">
  //编写自定义JS代码
  </script>
 </head>
 <body>
  <t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" 
  	action="hacVideoController.do?doAdd" tiptype="3">
  		<input type="hidden" name="id" value="${vedioDevice.id }"/>
		<table style="" cellpadding="0" cellspacing="1" class="formtable">
				<tr>
					<td align="right">
						<label class="Validform_label">
							NVS ID:
						</label>
					</td>
					<td class="value">
					     	<input name="nvsId" type="text" style="width: 150px" class="inputxt"  datatype="*"
					     		value="${vedioDevice.nvsId} "/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">nvs id</label>
						</td>
				</tr>
				
				<tr>
					<td align="right">
						<label class="Validform_label">
							ip地址:
						</label>
					</td>
					<td class="value">
					     	<input onkeypress="specialTextValidate()" id="ip" name="ip" type="text" style="width: 150px" class="inputxt"  datatype="*"
					     		value="${vedioDevice.ip} "/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">ip地址</label>
						</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							通道:
						</label>
					</td>
					<td class="value">
					     	<input id="channelid" name="channelid" type="text" style="width: 150px" class="inputxt"  datatype="n"
					     		value="${vedioDevice.channelid} "/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">通道</label>
						</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							端口号:
						</label>
					</td>
					<td class="value">
					     	 <input onkeyup="this.value=this.value.replace(/\D/g,'')" onkeypress="specialTextValidate()" id="port" name="port" type="text" style="width: 150px" class="inputxt"  datatype="*"
					     	 	value="${vedioDevice.port} "/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">端口号</label>
						</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							用户名:
						</label>
					</td>
					<td class="value">
					     	 <input id="loginName" name="loginName" type="text" style="width: 150px" class="inputxt" datatype="*"
					     	 	value="${vedioDevice.loginName} "/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">用户名</label>
						</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							密码:
						</label>
					</td>
					<td class="value">
					     	 <input id="password" name="password" type="text" style="width: 150px" class="inputxt" datatype="*"
					     	 	value="${vedioDevice.password} "/ >
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">密码</label>
						</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							实验室:
						</label>
					</td>
					<td class="value">
						<input id="labId" name="labId" type="hidden" value="${vedioDevice.labId }">               
					     <input id="labName" name="labName"  type="text" style="width: 150px" class="inputxt" readonly="readonly" datatype="*" value="${vedioDevice.labName }">
					     <t:choose hiddenName="labId" hiddenid="id" url="labController.do?goSelect" name="labList"
                          icon="icon-search" title="选择实验室" textname="name" inputTextname="labName" isclear="false" isInit="true"></t:choose>
							
						<span class="Validform_checktip"></span>
						<label class="Validform_label" style="display: none;">实验室</label>
					</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							视频名称:
						</label>
					</td>
					<td class="value">
					     	 <input onkeypress="specialTextValidate()" id="alias" name="alias" type="text" style="width: 150px" class="inputxt"  datatype="*"
					     	 	value="${vedioDevice.alias} "/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">视频名称</label>
						</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							存放路径:
						</label>
					</td>
					<td class="value">
					     	 <input id="addr" name="addr" type="text" style="width: 150px" class="inputxt"  
					     	   value="${vedioDevice.addr} "/>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">存放路径</label>
						</td>
				</tr>
			</table>
		</t:formvalid>
 </body>